package cn.haohaowo;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * Created by luwancai on 18/5/26.
 * DESC:
 */
@Slf4j
@Component
public class BookKafka {

    @KafkaListener(topics = "test", group = "book_group")
    public void doBookKafka(ConsumerRecord<String, String> consumerRecord) {
        log.info("doBookKafka xiangying, record: {}", consumerRecord.value());
    }


}
